<?php
namespace app\common\validate;
use think\Validate;

class Coupons extends Validate{
    protected $rule = [
        'name' =>  'require',
        'type'  =>  'require',
        'distype' =>  'require',
        'price' =>  'require',
        'starttime' =>  'require',
        'endtime' =>  'require',
    ];

    protected $message  =   [
        'name.require' => '优惠券名称不能为空',
        'type.require' => '请选择优惠券分类',
        'distype.require'   => '请选择折扣类别',
        'price.require'   => '请输入优惠价格',
        'starttime.require'   => '请选择生效时间',
        'endtime.require'   => '请选择失效时间',
    ];
}
